package com.cloud.shopping.page.feign;

import com.cloud.shopping.tool.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author John.zhang
 * @version Id: PageFeign, v 1.0 2021/1/3 13:49 ZhiYong Exp $
 */
@FeignClient(value = "shopping-web-page")
public interface PageFeign {

    /**
     * 生成静态页
     * @param id id
     * @return RespResult
     * @throws Exception
     */
    @GetMapping(value = "/page/{id}")
    RespResult html(@PathVariable(value = "id")String id) throws Exception;

}
